import request from '@/utils/request'

/**
 * 获取员工列表
 * @param { page, pageSize, name} params
 * @returns
 */
export function getEmployeeListAPI(params) {
  return request({
    url: '/park/sys/user',
    params
  })
}
export function addEmployeeAPI(data) {
  return request({
    url: '/park/sys/user',
    method: 'post',
    data
  })
}
export function checkAllRoleAPI() {
  return request({
    url: '/park/sys/role'
  })
}
export function delEmployeeAPI(id) {
  return request({
    url: `/park/sys/user/${id}`,
    method: 'delete'
  })
}
export function getEmployeeDetailAPI(id) {
  return request({
    url: `/park/sys/user/${id}`
  })
}
export function editEmployeeInfoAPI(data) {
  return request({
    url: `/park/sys/user`,
    method: 'PUT',
    data
  })
}
